﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GU.WebERP.Core.AjaxFx
{
    /// <summary>
    /// 指示类用于 Ajax 调用
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class AjaxFxClassAttribute : Attribute
    {
        /// <summary>
        /// 类编码
        /// </summary>
        public string Code
        {
            get;
            set;
        }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description
        {
            get;
            set;
        }

        /// <summary>
        /// 指示方法用于 Ajax 调用
        /// </summary>
        /// <param name="code">类编码</param>
        /// <param name="description">描述</param>
        public AjaxFxClassAttribute(string code, string description)
        {
            this.Code = code;
            this.Description = description;
        }
    }
}